#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2019/2/18 15:21
@desc
"""

import time
import threading


def printNum(a):
    print('num:', a)
    time.sleep(1)


def ThreadTest(i):
    return threading.Thread(target=printNum, args=(999,))


thread_arr = []
print('submit:')
for i in range(10):
    t = ThreadTest(i)
    thread_arr.append(t)

print('start:')
for t in thread_arr:
    t.start()

print('join:')
for t in thread_arr:
    t.join()

print('finished')
